package day0926;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Ques1017_2 {
	
	private Scanner scan;
	private Knight knight;
	private List<Knight> knightList;
	private Dragon dragon;
	
	public void init(){
		scan = new Scanner(System.in);
		knightList = new ArrayList<Knight>();
		dragon = new Dragon();
	}
	
	public void fightDragon(){
		this.init();
		int power = 0;
		int dragonHeadSize = 0;
		List<Integer> headSizeList = new ArrayList<Integer>();
		
		while(scan.hasNext()){
			int dragonHeadNum = scan.nextInt();
			int knightNum = scan.nextInt();
			if(knightNum == 0 && dragonHeadSize == 0){
				int cost = this.fight(dragon, knightList);
				if(cost == -1){
					System.err.println("Loowater is doomed!");
				}else{
					System.out.println("cost:$"+cost);
				}
			}
			for(int i = 0;i < dragonHeadNum; i++){
				dragonHeadSize = scan.nextInt();
				headSizeList.add(dragonHeadSize);
			}
			dragon.setHeadNum(dragonHeadNum);
			dragon.setHeadSizeList(headSizeList);
			
			for(int i = 0;i < knightNum; i++){
				knight = new Knight();
				power = scan.nextInt();
				knight.setPower(power);
				knightList.add(knight);
			}
		}
	}
	
	public int fight(Dragon dragon,List<Knight> knightList){
		int cost = -1;
		
		
		return cost;
	}
	
	public static void main(String[] args) throws Exception {
		
	}
	
	class Knight{
		private int power;
		
		public int getPower() {
			return power;
		}
		public void setPower(int power) {
			this.power = power;
		}

		public boolean fightDragonHead(int dragonHeadSize){
			if(this.power >= dragonHeadSize){
				return true;
			}else{
				return false;
			}
		}
	}
	
	class Dragon{
		private int headNum;
		private List<Integer> headSizeList; 
		
		public int getHeadNum() {
			return headNum;
		}
		public void setHeadNum(int headNum) {
			this.headNum = headNum;
		}
		public List<Integer> getHeadSizeList() {
			return headSizeList;
		}
		public void setHeadSizeList(List<Integer> headSizeList) {
			this.headSizeList = headSizeList;
		}
		
	}
}